<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>菜单</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  </head>
  
  <body>
   <script type="text/javascript">
   document.write("<h1> This is my JSP page.<%=basePath%></h1><br/><h2>${pageContext.request.contextPath}</h2>");
   	function goOgnl(){
		window.location.href="${pageContext.request.contextPath}/ognl.action";
  	}
   	function goMap(){
		window.location.href="${pageContext.request.contextPath}/iterator.action";
  	}
   	function goAjax(){
		window.location.href="${pageContext.request.contextPath}/testAjax.jsp";
  	}
   	function goJson(){
		window.location.href="${pageContext.request.contextPath}/testJson.jsp";
  	}
   	function goUpload(){
		window.location.href="${pageContext.request.contextPath}/upload.jsp";
  	}
   	function goVerify(){
		window.location.href="${pageContext.request.contextPath}/verifyImage.jsp";
  	}
   	function goTag(){
		window.location.href="${pageContext.request.contextPath}/testTag.action";
  	}
   </script>
   <input type="button" onclick="goOgnl();" value="测试OGNL">
   <input type="button" onclick="goMap();" value="测试迭代Map">
   <input type="button" onclick="goAjax();" value="测试Ajax">
   <input type="button" onclick="goJson();" value="测试迭代Json">
   <input type="button" onclick="goUpload();" value="测试上传与下载">
   <input type="button" onclick="goVerify();" value="测试验证码">
   <input type="button" onclick="goTag();" value="测试用户自定义标签">
   
  </body>
</html>
